﻿
using ED.FreeSql.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace ED.Entity
{

    /// <summary>
    ///  Base_Menu    
    /// </summary>
    [Table("Base_Menu")]
    public class Base_MenuEntity : BaseEntity<int>
    {

        /// <summary>
        /// 名称    
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 路由名称 通常和定义的组件名一致    
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 编码    
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 菜单类型：1-分组 2-页面 3-操作    
        /// </summary>
        public int? Type { get; set; }

        /// <summary>
        /// 路径    
        /// </summary>
        public string Path { get; set; }

        public string Component { get; set; }

        public string Redirect {  get; set; }

        /// <summary>
        /// 图标    
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public string IsLink { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public bool IsHide { get; set; }

        //public string Component { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public bool IsFull { get; set; }

        /// <summary>
        ///   
        /// </summary>
        public bool IsAffix { get; set; }

        /// <summary>
        /// 是否启用    
        /// </summary>
        public bool Active { get; set; }

        /// <summary>
        /// 是否打开新窗口    
        /// </summary>
        public bool IsKeepAlive { get; set; }

        /// <summary>
        /// 排序    
        /// </summary>
        public int? Rank { get; set; }

        /// <summary>
        /// 所属系统 微服务    
        /// </summary>
        public int? BelongSystem { get; set; }

        /// <summary>
        /// 备注    
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 父菜单id    
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 是否删除    
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 创建时间    
        /// </summary>
        public DateTime CreatedDate { get; set; }

        /// <summary>
        /// 创建人    
        /// </summary>
        public int? CreatedBy { get; set; }

        /// <summary>
        /// 更新时间    
        /// </summary>
        public DateTime? UpdatedDate { get; set; }

        /// <summary>
        /// 更新人    
        /// </summary>
        public int? UpdatedBy { get; set; }

        /// <summary>
        /// 树形结构使用
        /// </summary>
        public List<Base_MenuEntity>? Children { get; set; }
    }
}
